/**
 * 转正流程模拟过程相关接口
 */
import request from '@/utils/request';

/**
 * @param {*} employeeCode
 */
export function test(type, employeeCode) {
    let url = '';
    switch (type) {
        // 完成当次考评
        case '1':
            url = '/api/oa/v1/regular/probation/assess/actions/complete/current/';
            break;
        // 开启新一轮考评
        case '2':
            url = '/api/oa/v1/regular/probation/assess/actions/openAssess/';
            break;
        // 完成所有考评
        case '3':
            url = '/api/oa/v1/regular/probation/assess/actions/auto_complete_assess/';
            break;
        // 初始化
        case '4':
            url = '/api/oa/v1/regular/probation/assess/actions/init/';
            break;
        default:
            break;
    }
    return request(`${url}${employeeCode}`, {
        method: 'GET'
    });
}
